﻿@{
    Layout = "~/Views/Shared/_Main.cshtml";
}
<div class="container" style="min-height: 310px;">
    <ul class="breadcrumb">
        <li><a href="/">首页</a> <span class="divider">/</span></li>
        <li><a href="/Account/Register">作者注册</a> <span class="divider">/</span></li>
        <li class="active">注册完成</li>
    </ul>
    <fieldset>
        <legend>注册完成</legend>
        <h3 style="color: #08c">
            恭喜您，您已完成注册！</h3>
        <div class="alert alert-success">
            <p>
                现在您仅需登录邮箱完成验证，即可成为中华科教出版社网的正式会员啦！</p>
            <p>
                接下来您可以：</p>
            <a href="/" class="btn btn-primary">去首页看看</a>
            </div><p>
                如果您没收到验证邮件请核实您的邮箱是否正确，或 
                <input type="button" id="btnresend" onclick="resend()" class="btn btn-danger" value="重新发送验证邮件" />
            </p>
        
    </fieldset>
</div>
@section tail{
    <script type="text/javascript">
        function resend() {
            $.ajax({
                url: '/account/resend',
                data: { u: '@ViewBag.Username' },
                type: 'get',
                success: function (res) {
                    $('#btnresend').removeClass('btn-danger').attr('disabled', 'disabled').val('验证邮件已从新发送');
                }
            });
        }
    </script>
}